package scene01_Home;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import baseClass.Global;
import baseClass.Sprite_Default;
import mainSrc.GlobalSaveData;

public class Sprite_DefaultBar
  extends Sprite_Default
{
  int iBarNumber;
  
  public Sprite_DefaultBar(int paramInt1, int paramInt2, int paramInt3, float paramFloat1, float paramFloat2, int paramInt4)
  {
    super(paramInt1, paramInt2, paramInt3, paramFloat1, paramFloat2);
    this.iBarNumber = paramInt4;
  }
  
  public void DrawSprite(Canvas paramCanvas)
  {
    if (GlobalSaveData.GetInstance().iSize == this.iBarNumber)
    {
      this.position_x = 700.0F;
      this.position_y = 155.0F;
      if ((this.visible) && (this.bit_img != null)) {
        paramCanvas.drawBitmap(this.bit_img, this.position_x * Global.GetInstance().dnst_w - this.bit_img.getWidth() * this.position_ax, this.position_y * Global.GetInstance().dnst_h - this.bit_img.getHeight() * this.position_ay, this.paint);
      }
    }
    if (GlobalSaveData.GetInstance().iActivity == this.iBarNumber)
    {
      this.position_x = 700.0F;
      this.position_y = 235.0F;
      if ((this.visible) && (this.bit_img != null)) {
        paramCanvas.drawBitmap(this.bit_img, this.position_x * Global.GetInstance().dnst_w - this.bit_img.getWidth() * this.position_ax, this.position_y * Global.GetInstance().dnst_h - this.bit_img.getHeight() * this.position_ay, this.paint);
      }
    }
    if (GlobalSaveData.GetInstance().iGravity == this.iBarNumber)
    {
      this.position_x = 700.0F;
      this.position_y = 315.0F;
      if ((this.visible) && (this.bit_img != null)) {
        paramCanvas.drawBitmap(this.bit_img, this.position_x * Global.GetInstance().dnst_w - this.bit_img.getWidth() * this.position_ax, this.position_y * Global.GetInstance().dnst_h - this.bit_img.getHeight() * this.position_ay, this.paint);
      }
    }
  }
}


/* Location:           D:\Tool\AndroidKiller_v1.3.1\projects\petdesigner\ProjectSrc\classes-dex2jar.jar
 * Qualified Name:     scene01_Home.Sprite_DefaultBar
 * JD-Core Version:    0.7.0.1
 */